//
//  HJShareView.h
//  project
//
//  Created by jc on 2019/5/24.
//  Copyright © 2019 健健. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol HJShareViewDelegate <NSObject>

@optional

/**
 关闭弹框视图
 @param view self
 */
-(void)dismissWithView:(UIView *)view;

@end

@interface HJShareView : UIView
/**
 是否是web弹起
 */
@property (nonatomic,assign) BOOL isweb;

@property (nonatomic,weak) id<HJShareViewDelegate>delegate;
/**
 分享Url
 */
@property (nonatomic,strong)NSString * shareUrl;

/**
 分享title
 */
@property (nonatomic,strong)NSString * title;

/**
 分享描述
 */
@property (nonatomic,strong)NSString * descripte;
/**
 初始化视图
 @return shareView
 */
+(instancetype)shareView;

/**
 启动弹框
 */
-(void)showWithView:(UIView *)view aboveSubview:(UIView *)aboveSubview;
-(void)show;
/**
 隐藏弹框
 */
-(void)dimiss;
@end

NS_ASSUME_NONNULL_END
